Ext.define('ProjectAON.view.peerOpenzetten.Scherm18', {
    extend:'Ext.panel.Panel',
    alias:'widget.scherm18',

    title:'scherm18',


    initComponent:function () {
        Ext.applyIf(this, {
            layout:'border',
            items:[
                {
                    region: 'north',
                    items: [
                        {
                            xtype: 'button',
                            text: 'Terug',
                            icon:'http://whatisextjs.com/BAHO/icons/page_back.png',
                            action: 'back'
                        },
                        {
                            xtype: 'button',
                            text: 'Opslaan'
                        }

                    ]
                },
                {
                    region: 'center',
                    xtype:'grid',
                    columns:[
                        {header:'Competenties toevoegen', dataIndex:'Competenties', flex:1},
                        {xtype:'actioncolumn', width:20, items:[
                            { // Toevoegen
                                icon:'http://whatisextjs.com/BAHO/icons/add.png',
                                handler:function (grid, rowIndex, colindex) {
                                    // Working with grid row data
                                    var record = grid.getStore().getAt(rowIndex);
                                    alert("toegevoegd");
                                }
                            }
                        ]}
                    ],
                    store:'PeerEvaluatiesKlas'
                }

            ]
        });

        this.callParent(arguments);
    }
});